﻿using FluentModbus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommunicationLib.Interface
{
    public class TcpMbClient : IMbClient
    {

        #region Fields
        private readonly ModbusTcpClient client;
        #endregion

        public TcpMbClient(ModbusTcpClient client) { 
            this.client = client;
        }
        public void Dispose()
        {
            this.client.Dispose();
        }

        public ModbusClient GetClientImpl()
        {
            return this.client;
        }
    }
}
